﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MaterialExample
{
    public partial class MaterialExampleForm : Form
    {
        public MaterialExampleForm()
        {
            InitializeComponent();
        }

        private void btn_AttachMaterial_Click(object sender, EventArgs e)
        {
            MaterialMethod.AttachMaterial();
        }

        private void btn_AttachMaterialByLevel_Click(object sender, EventArgs e)
        {
            MaterialMethod.AttachMaterialByLevel();
        }

        private void btn_DetachMaterialByLevel_Click(object sender, EventArgs e)
        {
            MaterialMethod.DetachLevelMaterial();
        }

        private void btn_CreateMaterial_Click(object sender, EventArgs e)
        {
            MaterialMethod.CreateAndAssignMaterial();    
        }

        private void btn_GetMaterialInfo_Click(object sender, EventArgs e)
        {
            MaterialMethod.GetMaterialInfo();  
        }
    }
}
